-
Notifications
You must be signed in to change notification settings - Fork 0
Check DAO Method Return Type #247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a basic code inspection feature that validates the return type of DAO methods and refactors the package structure of existing code inspection classes. Key changes include package renaming from common.sql.validator.result to common.validation.result, the addition of several new ValidationResult classes, and modifications in the PsiDaoMethod class.
Reviewed Changes
Copilot reviewed 71 out of 71 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/main/kotlin/org/domaframework/doma/intellij/contributor/sql/provider/SqlParameterCompletionProvider.kt | Updated import for ValidationCompleteResult. |
| src/main/kotlin/org/domaframework/doma/intellij/common/validation/result/* | Package name refactoring and new validation result implementations. |
| src/main/kotlin/org/domaframework/doma/intellij/common/util/ForDirectiveUtil.kt | Updated imports to match the new package structure. |
| src/main/kotlin/org/domaframework/doma/intellij/common/psi/PsiDaoMethod.kt | Updated sqlFileOption’s visibility from private to public. |
Comments suppressed due to low confidence (1)
src/main/kotlin/org/domaframework/doma/intellij/common/psi/PsiDaoMethod.kt:64
- Changing the visibility of sqlFileOption from private to public may expose internal state unintentionally. Consider using an accessor method if external access is needed or reverting to private to preserve encapsulation.
var sqlFileOption: Boolean = false
Implement a basic code inspection feature that checks the return type of DAO methods based on their annotation types.
Refactor the implementation of other code inspections and move the package of the class that returns the results of the code inspection feature.